﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace AnimalWars2
{
    public class PenguinPlayer : HumanPlayer
    {
        public PenguinPlayer(GameTable gameTableRef, Texture2D texture, Vector2 position, Vector2 velocity, Keys left, Keys right, Keys action, PlayerSide side)
            : base(gameTableRef, texture, position, velocity, left, right, action, side)
        {
            m_Size = Constants.PENGUIN_PLAYER_SIZE;

            m_PlayerAnimatedTexture = new AnimatedTexture(position, 0, 1.0f, 0.5f);
            m_PlayerAnimatedTexture.Load(m_Game.Content, Constants.PENGUIN_PLAYER_BACK_ASSET_NAME, m_PlayerAnimationFrameCount, m_PlayerAnimationFrameRate);
            m_PlayerAnimatedTexture.Play();
        }
    }
}
